<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>百易相册>>注册</title>
<link rel="icon" href="../img/BaiYi_title_icon.png" />
<link type="text/css" rel="stylesheet" href="../css/foundation.css" />
<link type="text/css" rel="stylesheet" href="../css/baiyi.css" />
<script type="text/javascript" src="../js/vendor/jquery.js"></script>
<script type="text/javascript">
	//对两次输入的密码进行验证
	function validate() {
		var pas1 = $("#password1").val();
		var pas2 = $("#password2").val();
		if (pas1 == pas2) {//两次输入的密码一致
			return true;
		} else {
			alert("两次密码输入不一致！");
			return false;
		}
	}
	$(document).ready(function() {
		$("#email").blur(function() {
			alert("失去焦点！")
			var Email = sessionStorage.getItem("Email");
			if (Email != null) {
				alert("Email:" + Email);
				return true;
			} else {
				alert("Email:null");
				return false;
			}
		});
	});
</script>
</head>
<body style="background-color:#EDEFF0;">
	<nav class="top-bar login-top-bar">
		<span class="logo"></span>
	</nav>
	<div class="row" style="margin-top:150px;">
		<div class="large-6 medium-7 vertical-hr columns">
			<form action="register" method="post" class="login-form"
				onsubmit="return validate()">
				<h5>欢迎注册</h5>
				<input class="ipt ipt-username" type="text" autocomplete="off"
					placeholder="请输入用户昵称" name="user.userName" required /><input
					class="ipt ipt-email" type="text" autocomplete="off"
					placeholder="请输入联系邮箱" name="user.email" required id="email" /> <input
					class="ipt ipt-pwd" type="password" autocomplete="off"
					placeholder="请输入登录密码" id="password1" name="user.password" required />
				<input class="ipt ipt-pwd" type="password" autocomplete="off"
					placeholder="请再次输入登录密码" id="password2" name="repassword" required />
				<a class="left" style="margin-bottom: 16px;" href="login.jsp">&larr;
					&nbsp;返回登录</a> <input type="submit" class="small  button full"
					value="注册" />
			</form>
		</div>
		<div class="large-6 medium-5 columns">
			<span class="login-right-bg"></span>
		</div>
	</div>

	<!------------------页脚--------------------->
	<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>